<?php
if( !APP_ROOT  )
    return 'Direct Access Deny!';
    
return new \Phalcon\Config(array(
		'application' => array(
	        'pluginsDir'     => APP_ROOT . 'plugins/',
	        'libraryDir'     => APP_ROOT . 'libraries/',
	        'cacheDir'       => APP_ROOT . 'cache/',
	        'enumsDir'		 => APP_ROOT . 'enums/',
	        'logs' 			 => APP_ROOT . 'logs/',
	        'listenersDir'	 => APP_ROOT . 'listeners/',
	        'baseUri'        => '/',
	    ),
		'cache' => array(
		        'cacheAdapter' => 'redisCache',
// 		        'memcache'     => array(
// 	                'frontend' => array( 'lifetime' => 14400 ),
// 	                'backend'  => array(
// 		                'host' => '127.0.0.1',
// 		                'port' => '11211'
// 	                )
// 		        ),
// 		        'memcached' => array(
// 	                'backend' => array( 
// 	                    array(
// 	                        'host'   => '127.0.0.1',
// 	                        'port'   => '11211',
// 	                        'weight' => '1'
// 	                    )
// 	                ),
// 	                'frontend' => array( 'lifetime' => 14400 )
// 	            ),
// 		        'mongoCache'   => array(
// 	                'frontend' => array( 'lifetime' => 14400 ),
// 	                'backend'  => array(
// 		                'server'     => "mongodb://localhost",
// 		                'db'         => 'caches',
// 		                'collection' => 'images',
// 	                )
// 	            ),
		        'apc' => array(
	                'frontend' => array( 'lifetime' => 172800 ),
	                'backend'  => array( 'prefix'   => 'fcms_' )
		        ),
		        'inmem'        => array( 'frontend' => array( 'lifetime' => 1800 ) ),
		        'redisCache'   => array( 
	                'frontend' => array( 'lifetime' => 14400 ),
	                'backend'  => array(
	                    'host'       => '127.0.0.1',
	                    'port'       => 6379,
	                    //'auth'     => 'foobared',
	                    'persistent' => false,
	                    'prefix'     => 'fcms_'
	                )
	            ),
// 		        'fileCache'    => array( 
// 	                'frontend' => array( 'lifetime' => 14400 ),
// 	                'backend'  => array( 'cacheDir' => APP_ROOT . 'cache/fileCache/' ) 
// 		        ),
// 		        'fCache'       => array( 
// 	                'frontend' => array( 'lifetime' => 14400 ),
// 		            'backend'  => array( 'cacheDir' => APP_ROOT . 'cache/fileCache/' )
// 	            ),
// 		        'xcache'       => array( 
// 	                'frontend' => array( 'lifetime' => 14400 ),
// 	                'backend'  => array( 'prefix'   => 'fcms_' )
// 		        ),
		        'htmlCache'    => array( 
	                'frontend' => array( 'lifetime' => 14400 ),
	                'backend'  => array( 'cacheDir' => APP_ROOT . 'cache/html/' )
		        )
	    ),
		
// 	    'beanstalk' => array(  'host'  => '127.0.0.1',  'port'  => 11300 ),
	    'admin_regenrator_time_interval' => 3 * 60,
	    'home_regenarater_time_interval' => 3 * 60,
	    'sensitive_default_replace'		 => '**', // 默认敏感字符替换
		
        //讲解员讲解默认时间段 
		'default_start_time_period'   => '09:00',
        'default_end_time_period'     => '18:00',
		
		//密码找回 页面失效时间 - s
		'reset_page_lifetime' => 12 * 3600,
    
        //锁定未付款订单默认时间
        'lock_unpay_order' => 15 * 60,
		
		//滚动加载每次加载的数据条数
		'load_once_num' => 5,
    
        //活动最大限制人数
        'max_limit_members'  => 20,
        
        // 活动最大限制时间 - h
        'server_limit_time' => 18,
    
        //短信获取时长       - s
        'sms_limit_time'    => 60,
    
    )
);
